/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "物料主表",TableName = "cw_djlc_wlzb")]
    public partial class cw_djlc_wlzb:BaseEntity
    {
        /// <summary>
       ///BOM编号
       /// </summary>
       [Display(Name ="BOM编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       public string bomnumber { get; set; }

       /// <summary>
       ///物料主表
       /// </summary>
       [Key]
       [Display(Name ="物料主表")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid cw_djlc_wlzb_id { get; set; }

       /// <summary>
       ///整车头物料号
       /// </summary>
       [Display(Name ="整车头物料号")]
       [MaxLength(36)]
       [Column(TypeName="varchar(36)")]
       [Editable(true)]
       public string materialnum { get; set; }

       /// <summary>
       ///父物料号
       /// </summary>
       [Display(Name ="父物料号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       public string parent_componentnum { get; set; }

       /// <summary>
       ///组件号
       /// </summary>
       [Display(Name ="组件号")]
       [MaxLength(36)]
       [Column(TypeName="varchar(36)")]
       [Editable(true)]
       public string componentnum { get; set; }

       /// <summary>
       ///MTYP
       /// </summary>
       [Display(Name ="MTYP")]
       [MaxLength(36)]
       [Column(TypeName="varchar(36)")]
       [Editable(true)]
       public string MTyp { get; set; }

       /// <summary>
       ///对象描述
       /// </summary>
       [Display(Name ="对象描述")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       [Editable(true)]
       public string description { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? num { get; set; }

       /// <summary>
       ///价格来源
       /// </summary>
       [Display(Name ="价格来源")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string pricesource { get; set; }

       /// <summary>
       ///单价
       /// </summary>
       [Display(Name ="单价")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? unitprice { get; set; }

       /// <summary>
       ///价格异议
       /// </summary>
       [Display(Name ="价格异议")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? finalprice { get; set; }

       /// <summary>
       ///代码
       /// </summary>
       [Display(Name ="代码")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string codename { get; set; }

       /// <summary>
       ///创建日期
       /// </summary>
       [Display(Name ="创建日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? creationdate { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string Creator { get; set; }

       /// <summary>
       ///创建日期
       /// </summary>
       [Display(Name ="创建日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string Modifier { get; set; }

       /// <summary>
       ///修改日期
       /// </summary>
       [Display(Name ="修改日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///价格有效开始日期
       /// </summary>
       [Display(Name ="价格有效开始日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? priceeffectivedatestart { get; set; }

       /// <summary>
       ///价格有效结束日期
       /// </summary>
       [Display(Name ="价格有效结束日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? priceeffectivedateend { get; set; }

       /// <summary>
       ///BOM有效起始日期
       /// </summary>
       [Display(Name ="BOM有效起始日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? bomeffectivedatestart { get; set; }

       /// <summary>
       ///BOM有效截止日期
       /// </summary>
       [Display(Name ="BOM有效截止日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? bomeffectivedateend { get; set; }

       /// <summary>
       ///物料类型
       /// </summary>
       [Display(Name ="物料类型")]
       [Column(TypeName="int")]
       public int? bomtype { get; set; }

       /// <summary>
       ///定价流程主表id
       /// </summary>
       [Display(Name ="定价流程主表id")]
       [Column(TypeName="uniqueidentifier")]
       public Guid? cw_djlc_djzb_id { get; set; }

       /// <summary>
       ///采购价格维护表id
       /// </summary>
       [Display(Name ="采购价格维护表id")]
       [Column(TypeName="uniqueidentifier")]
       public Guid? cw_djlc_jgwh_id { get; set; }

       /// <summary>
       ///调价原因
       /// </summary>
       [Display(Name ="调价原因")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       public string pricereason { get; set; }

       /// <summary>
       ///返利金额
       /// </summary>
       [Display(Name ="返利金额")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? rabateprice { get; set; }

       /// <summary>
       ///评估类类别
       /// </summary>
       [Display(Name ="评估类类别")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       public string evaluation_code { get; set; }

       /// <summary>
       ///评估类描述
       /// </summary>
       [Display(Name ="评估类描述")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       public string evaluation_desc { get; set; }

       /// <summary>
       ///差异分析是否已同步，0:未同步,1:已同步
       /// </summary>
       [Display(Name ="差异分析是否已同步，0:未同步,1:已同步")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int is_synchronization_status { get; set; }

       
    }
}